<?php
require_once('../inc.config.php'); # Super System Globals
define('JSON_API_RESOURCES_URL', $urls['resources']); # eg. http://localhost/smarty-framework/json-fast/resources

defined('JSON_PRETTY_PRINT')||define('JSON_PRETTY_PRINT', false);
function json_encode_custom($data=array())
{
	$json = array();
	if(JSON_PRETTY_PRINT)
	{
		/**
		 * Some (old*) servers do not support this feature
		 */
		$json = json_encode($data, JSON_PRETTY_PRINT);
	}
	else
	{
		$json = json_encode($data);
	}

	return $json;
}
?>